home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
cptutor2.arc
/
CAR.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-10-20
|
368 b
|
23 lines
// Chapter 7 - Program 5
#include "car.hpp"
void car::initialize(int in_wheels, float in_weight, int people)
{
passenger_load = people;
vehicle::initialize(in_wheels, in_weight);
}
int car::passengers(void)
{
return passenger_load;
}
// Result of execution
//
// (this file cannot be executed)